<template>
  <div>
    <didnav :list2="list" @sonFnc="praentFuc" ref="son"></didnav>
    <div></div>
  </div>
</template>

<script>
import didnav from '@/components/didnav/index'
export default {
  data() {
    return {
      list:[
        {phone:'Mi',id:102},
        {phone:'vivo',id:103},
        {phone:'iphone',id:104},
        ]
    };
  },
  created() {

  },
  mounted () {
    console.log(this.$children);
    console.log(this.$refs.son.didson);
  },
  methods: {
    praentFuc(i){
      console.log(i);
    }
  },
  components: {
    didnav
  },
};
</script>

<style scoped>
</style>
